package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.CheckState;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: 蒋学伟
 * @create: 2020-07-01 09:35:20
 * @Description 任务审批记录
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName(value = "f_task_audit_record")
public class TaskAuditRecord implements Serializable {
    @TableId(type = IdType.AUTO, value = "intId")
    private Integer id;

    /**
     * 任务id
     */
    @TableField("intTaskId")
    private Integer taskId;

    /**
     * 任务名称
     */
    @TableField("vcTaskName")
    private String taskName;

    /**
     * 审核状态
     */
    @TableField("vcLastState")
    private CheckState lastState;

    /**
     * 审核状态
     */
    @TableField("vcState")
    private CheckState state;

    /**
     * 审批人id
     */
    @TableField("intAuditAdminId")
    private Integer auditAdminId;

    /**
     * 审批人名称
     */
    @TableField("vcAuditAdminName")
    private String auditAdminName;

    /**
     * 审批/执行时间
     */
    @TableField("dtCreateTime")
    private Date createTime;

    /**
     * 审批/执行时间
     */
    @TableField("vcRemark")
    private String remark;

    /**
     * 实际工时
     */
    @TableField("douWorkTime")
    private Double workTime;

    /**
     * 期望完成时间
     */
    @TableField("dtExpectOverTime")
    private Date expectOverTime;

    /**
     * 评分
     */
    @TableField("douScore")
    private Double score;

    /**
     * 附件
     */
    @TableField("vcFile")
    private String file;

    /**
     * 执行人，组数json
     */
    @TableField("vcAdminExecs")
    private String adminExecs;


    /**
     * 下一步执行人id
     */
    @TableField("intNextNodeAdminId")
    private Integer nextAdminId;

    /**
     * 下一步执行人名称
     */
    @TableField("vcNextNodeAdminName")
    private String nextAdminName;

    /**
     * 是否完结
     */
    @TableField("isOver")
    private Boolean isOver;

    /**
     * 扩展信息
     */
    @TableField("vcExtendInfo")
    private String extendInfo;
}
